using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TriggerAreaY : MonoBehaviour
{
    public PlayerFocus pF;
    public bool isUp = false;

    private void OnTriggerEnter2D( Collider2D other )
    {
        if ( other.CompareTag( "Player" ) )
        {
            pF.flag = isUp ? CameraDir.Up : CameraDir.Down;
            pF.Switch();
        }
    }
}

